package com.example.flower_shop.vo.addr;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserAddressReq {
    //用户地址id
    @Schema(description = "用户地址id")
    private Long id;
    //收货人姓名
    @NotBlank(message = "收货人姓名不能为空")
    @Schema(description = "收货人姓名")
    private String realName;
    //收货人电话
    @NotBlank(message = "收货人电话不能为空")
    @Schema(description = "收货人电话")
    private String phone;
    //收货人所在省
    @NotBlank(message = "收货人所在省不能为空")
    @Schema(description = "收货人所在省")
    private String province;
    //收货人所在市
    @NotBlank(message = "收货人所在市不能为空")
    @Schema(description = "收货人所在市")
    private String city;
    //收货人所在区
    @NotBlank(message = "收货人所在区不能为空")
    @Schema(description = "收货人所在区")
    private String district;
    //收货人详细地址
    @NotBlank(message = "收货人详细地址不能为空")
    @Schema(description = "收货人详细地址")
    private String detail;
    //邮编
    @Schema(description = "邮编")
    private Integer postCode;
    //经度
    @Schema(description = "经度")
    private String longitude;
    //纬度
    @Schema(description = "纬度")
    private String latitude;
    @Schema(description = "是否默认地址")
    @NotNull(message = "是否默认地址不能为空")
    private Boolean isDefault;
}
